package uform.ui.comp;

/**
 * ...
 * @author Franco Ponticelli
 */

import uform.property.Property;
import uform.property.IProperty;
import uform.ui.comp.Control;
import uform.ui.comp.Component;

class TextOutput extends Component
{
	public var text(default, null) : IProperty<String>;
	public function new(?text : String)
	{
		super();
		this.text = new Property(text);
	}
	
	override function _id() : String
	{
		return "T";
	}

	override function dispose()
	{
		text.onChange.clear();
		text = null;
		super.dispose();
	}
}